import random

nums = []

for _ in range(5):
  tmp = int(input('请输入数字：'))
  nums.append(tmp)

print(nums)

# 计算平均值
avg_value = sum(nums) / len(nums)
print(f'平均值：{avg_value}')

# 计算
total = 0
for x in nums:
  total += (x - avg_value) ** 2

# 样本方差
var_value = total / (len(nums) - 1)
print(f'样本方差{var_value}')

# 标准差
std_value = var_value ** 0.5
print(f'标准差{std_value}')

# 同时获取最大值和最小值
max_value, min_value = max(nums), min(nums)
print(f'最大值,最小值 = { {max_value}, {min_value} }')